home *** CD-ROM | disk | FTP | other *** search
/ SGI Varsity Update 1998 August / SGI Varsity Update 1998 August.iso / dist / dist6.5 / il_dev.idb / usr / include / il / ilCombineImg.h.z / ilCombineImg.h
C/C++ Source or Header  |  1998-07-29  |  2KB  |  64 lines

  1. #if 0 
  2.  
  3.     Copyright (c) 1991 SGI   All Rights Reserved
  4.     THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SGI
  5.     The copyright notice above does not evidence any
  6.     actual or intended publication of such source code,
  7.     and is an unpublished work by Silicon Graphics, Inc.
  8.     This material contains CONFIDENTIAL INFORMATION that
  9.     is the property of Silicon Graphics, Inc. Any use,
  10.     duplication or disclosure not specifically authorized
  11.     by Silicon Graphics is strictly prohibited.
  12.     
  13.     RESTRICTED RIGHTS LEGEND:
  14.     
  15.     Use, duplication or disclosure by the Government is
  16.     subject to restrictions as set forth in subdivision
  17.     (c)(1)(ii) of the Rights in Technical Data and Computer
  18.     Software clause at DFARS 52.227-7013, and/or in similar
  19.     or successor clauses in the FAR, DOD or NASA FAR
  20.     Supplement.  Unpublished- rights reserved under the
  21.     Copyright Laws of the United States.  Contractor is
  22.     SILICON GRAPHICS, INC., 2011 N. Shoreline Blvd.,
  23.     Mountain View, CA 94039-7311
  24.  
  25. #endif
  26. /*
  27.     ilCombineImg is derived from ilPolyadicImg and performs blending
  28.     of two ilImages, using an Roi.
  29. */
  30.  
  31. #ifndef _ilCombineImg_h_
  32. #define _ilCombineImg_h_
  33.  
  34. #include <il/ilPolyadicImg.h>
  35. class ilRoi;
  36.  
  37. class ilCombineImg : public ilPolyadicImg {
  38. public:
  39.     iflClassListDeclare
  40.     ~ilCombineImg();
  41.     // external api: begin
  42.     ilCombineImg(ilImage* fore=NULL, ilImage* bkgd=NULL, ilRoi* roi=NULL, 
  43.          int xoffset=0, int yoffset=0, int zoffset=0);
  44.  
  45.     void setRoi(ilRoi* roi, int xoffset=0, int yoffset=0, int zoffset=0);
  46.     ilRoi* getRoi();
  47.     void getRoiOffset(int& xoffset, int& yoffset, int& zoffset)
  48.         { xoffset = roiOffset.x; yoffset = roiOffset.y; zoffset = roiOffset.z; }
  49.     // external api: end
  50.  
  51. protected:
  52.     virtual void resetOp();
  53.     virtual ilStatus prepareRequest(ilMpCacheRequest* req);
  54.     virtual ilMpCacheRequest* getMpRequest(ilMpManager* parent, 
  55.                        int x, int y, int z, int c, 
  56.                        int mode=ilLMread);
  57.     virtual ilStatus calcPage(void** inBuf, int numIn, void* outBuf, 
  58.                   ilMpCacheRequest& req);
  59.  
  60. private:
  61.     iflXYZint roiOffset;
  62. };
  63. #endif
  64.